@layout("/common/_container.html"){
<style>
    .ulStyle>li{list-style: none;line-height: 55px;}
    .selectStyle{ height: 40px; width: 70%}
</style>
<div id="isDealInfoForm">
    <div style="display: none">

    </div>
    <div class="clearfix">
        <div class="col-sm-12">
            <ul class="ulStyle">
                <li>
                    一级模板类别<input class="selectStyle" name="oneClass" id="oneClass" >
                </li>
                <li>
                    二级模板类别<input class="selectStyle" name="twoClass" id="twoClass">
                </li>
            </ul>
        </div>
    </div>
    <div class="btn_box col-sm-12">
        <div class="col-sm-4"></div>
        <div class="col-sm-8">
            <button type="button" class="btn" id="submit">提交</button>
            <button type="button" class="btn" onclick="cancel()">取消</button>
        </div>
    </div>
</div>
<script>
    submit.onclick = function() {
        var oneClass= document.getElementById("oneClass").value;
        var twoClass= document.getElementById("twoClass").value;
        $.ajax({
            url: "${ctxPath}/doctorLooked/addBoLogValue",
            type: "post",
            data: {
                oneClass: oneClass,
                twoClass: twoClass
            },
            success: function (data) {
                alert('操作成功!');
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
                parent.layer.close(index);
            },
            error: function (data) {
                alert('内部故障!');
            }
        });
    }

    function cancel() {
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        parent.layer.close(index);
    }
</script>
@}